package com.xmxsuperstar.app.ttac.handlers;

import java.util.List;

import android.graphics.Bitmap;
import android.os.Handler;
import android.os.Message;
import android.widget.ImageView;

public class HeadImageHandler extends Handler {
	@Override
	public void handleMessage(Message msg) {
		switch (msg.what) {
		case 0:
			@SuppressWarnings("rawtypes")
			List list = (List) msg.obj;
			Bitmap bitmap = (Bitmap) list.get(0);
			ImageView iv = (ImageView) list.get(1);
			iv.setImageBitmap(bitmap);
			break;
		default:
			super.handleMessage(msg);
		}
	}
}
